home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / os20 / util / dirdb20.lha / RSound < prev    next >
AmigaDOS Script File  |  1993-04-18  |  690b  |  17 lines

  1. .key num,rest
  2. ; Plays 'num' random sounds, selected from my sys:DirDBs/sound.db database
  3. ; Usage:
  4. ; If 'num' is not specified, plays 1 sound
  5. ; Specify -1 to keep playing
  6. ; Specify a value for 'num', followed by "unique" to play different random sounds
  7. .bra {
  8. .ket }
  9. ; Uncomment the following line if your speakers, like mine,
  10. ; switch off after a period of time. Also substitute an apropriate
  11. ; sample name.
  12. ;rx "ADDRESS play 'file' 'sound:Bass_snap' '-S'"
  13. ;Make sure DBEntry is in your path, or change to show full path
  14. ;Make sure your db/Path variable includes where to find "sound.db"
  15.  
  16. DBEntry Sound.db execute pre="rx *"address play 'file' '" post="' '-S'*"" {num} random unique {rest}
  17.